<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/home/include/init_home.jsp" %>
<%
	HashList code100	= CommonUtil.getCodeList("100");	//여행구분
	HashList code007	= CommonUtil.getCodeList("007");	//여행구분
	HashList code118	= CommonUtil.getCodeList("118");	//여행인원
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%= HOME_NAME %></title>
<link href="../css/home.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="/css/smoothness/jquery-ui-1.8.17.custom.css" media="screen" />
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.18.custom.min.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/jquery.maskedinput-1.3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/jquery.ui.datepicker-ko.js" charset="utf-8"></script>
<script>
	$(document).ready(function() {
		$('input[name="start_dt"]').mask('9999.99.99').datepicker();
	});


	function fnSaveReq() {
		if (document.reqForm.customer_name.value == "") {
			alert("작성자를 입력해주세요");
			document.reqForm.customer_name.focus();
			return false;
		}
		if (document.reqForm.phone_no.value == "") {
			alert("연락처를 입력해주세요");
			document.reqForm.phone_no.focus();
			return false;
		}
		if (document.reqForm.email_addr.value == "") {
			alert("이메일을 입력해주세요");
			document.reqForm.email_addr.focus();
			return false;
		}
		if (document.reqForm.password.value == "") {
			alert("비밀번호를 입력해주세요");
			document.reqForm.password.focus();
			return false;
		}

		document.reqForm.submit();
	}

</script>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <%@ include file="/home/include/top_menu.jsp" %>
  <tr>
    <td valign="top" align="center" class="sub_con"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
      <!-- 좌측 네비 시작-->
        <%@ include file="/home/include/left_menu.jsp" %>
        <!-- 좌측 네비 끝-->
        <td width="50"></td>
        <!-- 컨텐츠 시작-->
        <td valign="top" align="left"><table width="723" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="70%"><img src="../images/sub/09_title_01.gif" alt="고객센터" width="101" height="31" /><img src="../images/sub/09_title_sub.gif" width="272" height="18" /></td>
                <td width="30%" align="right" valign="bottom"></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5"><img src="../images/sub/sub_line.gif" width="723" height="5" /></td>
          </tr>
          <tr>
            <td height="30"></td>
          </tr>
          <tr>
            <td class="sub_title">견적의뢰</td>
          </tr>
          <tr>
                <td height="30"></td>
          </tr>
          <!--입력폼 시작-->
          <tr>
            <td height="30">
            	<form name="reqForm" action="./reqSave.do" method="post">
            	<input type="hidden" name="job_type" value="C"/>
            	<input type="hidden" name="req_gubn" value="1"/>
				<input type="hidden" name="req_status" value="1"/>
            	<table width="100%" border="0" cellspacing="0" cellpadding="0">

              <!--선택관광 시작-->
              <tr>
                <td height="34"><img src="../images/sub/customer_02_t_004.gif" alt="견적내용" width="96" height="26" /></td>
              </tr>
              <tr>
                <td height="2" bgcolor="#999999"></td>
              </tr>
              <tr>
                <td><table id="enjoyList" width="100%" border="0" cellspacing="0" cellpadding="0">
                	<colgroup>
				  		<col width="100"/>
				  		<col />
				  	</colgroup>
                  <tr>
                    <th align="center" class="customer_bg">출발일</th>
                    <td class="customer_bg2">
                    	<input type="text" name="start_dt" size="5" style="width:100px;" class="input2 c" />
					</td>
                  </tr>
	              <tr>
	                <td colspan="4" class="customer_line_01"></td>
	              </tr>
                  <tr>
                    <th align="center" class="customer_bg">여행일정</th>
                    <td class="customer_bg2">
                    	<select name="travel_type" style="width:200px">
						<%= StringUtil.makeOption(code007, "") %>
						</select>
					</td>
                  </tr>
	              <tr>
	                <td colspan="4" class="customer_line_01"></td>
	              </tr>
                  <tr>
                    <th align="center" class="customer_bg">여행인원</th>
                    <td class="customer_bg2">
                    	<select name="adult_count" style="width:66px">
						<option value="0">성인</option>
						<%= StringUtil.makeOption(code118, "") %>
						</select>
						<select name="child_count" style="width:66px">
						<option value="0">소아</option>
						<%= StringUtil.makeOption(code118, "") %>
						</select>
						<select name="baby_count" style="width:66px">
						<option value="0">유아</option>
						<%= StringUtil.makeOption(code118, "") %>
						</select>
					</td>
                  </tr>
	              <tr>
	                <td colspan="4" class="customer_line_01"></td>
	              </tr>
                  <tr>
                    <th align="center" class="customer_bg">여행종류</th>
                    <td class="customer_bg2">
                    	<%= StringUtil.makeRadio(code100, "travel_gubn",  "") %>
					</td>
                  </tr>
	              <tr>
	                <td colspan="4" class="customer_line_01"></td>
	              </tr>
                  <tr>
                    <th align="center" class="customer_bg">1인 예상금액</th>
                    <td class="customer_bg2">
                    	<input type="text" name="est_amt" size="5" style="width:100px;" class="input2 c" /> 만원
					</td>
                  </tr>
	              <tr>
	                <td colspan="4" class="customer_line_01"></td>
	              </tr>
                </table></td>
              </tr>
              <!--선택관광 끝-->
              <tr>
              	<td height="30"></td>
              </tr>
              <!--공통사항 시작-->
              <tr>
                <td height="34"><img src="../images/sub/customer_02_t_001.gif" alt="공통사항" width="96" height="26" /></td>
              </tr>
              <tr>
                <td height="2" bgcolor="#999999"></td>
              </tr>
              <tr>
                <td class="customer_line_01"></td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                	<colgroup>
				  		<col width="100"/>
				  		<col width="240"/>
				  		<col width="100"/>
				  		<col />
				  	</colgroup>
                  <tr>
                    <th align="center" class="customer_bg">작성자</th>
                    <td class="customer_bg2">
						<input type="text" name="customer_name" style="width:200px;" class="input2" />
					</td>
                    <th align="center" class="customer_bg">연락처</th>
                    <td class="customer_bg2"><input type="text" name="phone_no" style="width:200px;" class="input2" /></td>
                  </tr>
                  <tr>
	                <td colspan="4" class="customer_line_01"></td>
	              </tr>
	              <tr>
                    <th align="center" class="customer_bg">이메일</th>
                    <td class="customer_bg2">
						<input type="text" name="email_addr" style="width:200px;" class="input2" />
					</td>
                    <th align="center" class="customer_bg">비밀번호</th>
                    <td class="customer_bg2"><input type="text" name="password" style="width:200px;" class="input2" /></td>
                  </tr>
                  <tr>
	                <td colspan="4" class="customer_line_01"></td>
	              </tr>
                </table></td>
              </tr>
	              <tr><td>
	              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                	<colgroup>
				  		<col width="100"/>
				  		<col />
				  	</colgroup>
				  	<tr>
                    <th align="center" class="customer_bg">문의사항</th>
                    <td style="padding-top:10px; padding-bottom:10px" class="customer_bg2">
						<textarea name="req_info" rows="10" cols="94" class="textarea"></textarea>
					</td></tr></table>
				  </tr>
              <tr>
                <td class="customer_line_01"></td>
              </tr>
              <!--공통사항 끝-->
              <tr>
                <td height="36"></td>
              </tr>
              <tr>
	          	<td height="80" align="center"><a href="#nohref" onclick="fnSaveReq()"><img src="../images/sub/reserve.gif" alt="바로예약하기" width="167" height="34" /></a></td>
	          </tr>
            </table>
            </form>
            </td>
          </tr>
          <!--입력폼 끝-->

          <tr>
          	<td height="80"></td>
          </tr>
        </table></td>
        <!-- 컨텐츠 끝-->
      </tr>
    </table></td>
  </tr>
  <tr>
	<%@ include file="/home/include/footer.jsp" %>
  </tr>
</table>
</body>
</html>
</html>
